package stock

import (
	"gitee.com/lyuanbo/stock-plus/internal/svc"
	storagememory "gitee.com/lyuanbo/stock-plus/pkg/stock/storage_memory"
	"gitee.com/lyuanbo/stock-plus/pkg/worker_manager"
)

var _ workermanager.Tasker = (*StorageClickHouse)(nil)

func init() {
	// workermanager.Register(func(svcCtx *svc.ServiceContext, cache *storagememory.Cache) workermanager.Tasker {
	// 	return NewStorageClickHouse(svcCtx, cache)
	// })
}

type StorageClickHouse struct {
	svcCtx *svc.ServiceContext
}

func NewStorageClickHouse(svcCtx *svc.ServiceContext, _ *storagememory.Cache) *StorageClickHouse {
	return &StorageClickHouse{svcCtx: svcCtx}
}

func (s *StorageClickHouse) Name() string {
	return "storage.clickhouse"
}

func (s *StorageClickHouse) Init() {

}

func (s *StorageClickHouse) Start() {
	go s.Run()
}

func (s *StorageClickHouse) Run() {

}
